//testcase for (welcome/rules/help)ScreenView

#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "GameCC.h"
#include "Model.h"

void GameControlCenter::init(void)
{
}

void GameControlCenter::start(void)
{
   welcomeScreenView();
   while(1)
   {
      char ch = mainMenuView();
      switch(ch)
      {
         case 'r': case 'R': rulesScreenView(); break;
         case 'h': case 'H': helpScreenView(); break;
         case 'q': case 'Q': return;
      }
   }
}

void GameControlCenter::welcomeScreenView(void)
{
   //if 
      PrintFile("welcome.txt");
 /*     printf("\nOK\n");
   else
      printf("\nNo\n");*/
}

void GameControlCenter::rulesScreenView(void)
{
  // if 
      PrintFile("rules.txt");
   /*   printf("\nOK\n");
   else
      printf("\nNo\n");*/
}

void GameControlCenter::helpScreenView(void)
{
  // if (
   PrintFile("help.txt");
 /*     printf("\nOK\n");
   else
      printf("\nNo\n");*/
}

char GameControlCenter::mainMenuView(void)
{
   system("cls");

   printf("(N)ew Game\n");
   printf("(S)cores\n");
   printf("(C)ategories\n");
   printf("(T)imer\n");
   printf("(H)elp\n");
   printf("(R)ules\n");
   printf("(Q)uit\n");

   return _getch();
}
